package vn.sunnet.game.SinhTon.object;

import vn.sunnet.game.SinhTon.global.Assets;

import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.Rectangle;

public class BoundObject {
	private int id;
	private Rectangle bounds;
	private TextureRegion texture;
	public BoundObject(int id){
		this.id = id;
		
		switch (id) {
		case 1:
			bounds = new Rectangle(45, 355, 21, 22);
			break;
		case 2:
			bounds = new Rectangle(98, 351, 25, 26);
			break;
		case 3:
			bounds = new Rectangle(81, 306, 24, 24);
			break;
		case 4:
			bounds = new Rectangle(104, 283, 21, 22);
			break;
		case 5:
			bounds = new Rectangle(114, 257, 19, 19);
			break;
		case 6:
			bounds = new Rectangle(136, 234, 23, 24);
			break;
		case 7:
			bounds = new Rectangle(168, 208, 26, 26);
			break;
		case 8:
			bounds = new Rectangle(190, 129, 26, 27);
			break;
		case 9:
			bounds = new Rectangle(110, 66, 26, 26);
			break;
		case 10:
			bounds = new Rectangle(85, 27, 20, 19);
			break;
		}
	}
	public int getId() {
		return id;
	}
	
	public Rectangle getBounds() {
		return bounds;
	}
	public TextureRegion getTexture() {
		texture = Assets.trMapVN.get(id - 1);
		return texture;
	}
	
}
